package com.gong.gongcloudpicture1.controller;


import com.gong.gongcloudpicture1.common.BaseResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/test/")
public class TestController {



    @GetMapping("hello")
    public BaseResponse<Map<String, Object>> hello() {
        Map<String, Object> map = new HashMap<>();
        int a = 1;
        map.put("msg", "hello");
        map.put("content", "龚忠磊");
        System.out.println(1 / 0);
        return BaseResponse.success(map);
    }



}
